set terminal png

set output "doc/gfx/mul_limbs.png"
set ylabel "Number of Limbs"
set xlabel "Number of Digits"
set title "Number of Digits vs Number of Limbs"
plot "bin/integer_mul.dat" using 1:2 notitle with linespoints

set output "doc/gfx/mul_instructions.png"
set ylabel "Instruction Count"
set xlabel "Number of Limbs"
set title "Number of Limbs vs Instruction Count"
plot "bin/integer_mul.dat" using 2:3 notitle with linespoints

set output "doc/gfx/mul_cycles.png"
set ylabel "Cycle Count"
set xlabel "Number of Limbs"
set title "Number of Limbs vs. Cycle Count"
plot "bin/integer_mul.dat" using 2:4 notitle with linespoints

set output "doc/gfx/mul_l1_dcm.png"
set ylabel "L1 DCMs"
set xlabel "Number of Limbs"
set title "Number of Limbs vs. L1 Data Cache Misses(DCMs)"
plot "bin/integer_mul.dat" using 2:5 notitle with linespoints

set output "doc/gfx/mul_l2_dcm.png"
set ylabel "L2 DCMs"
set xlabel "Number of Limbs"
set title "Number of Limbs vs. L2 Data Cache Misses(DCMs)"
plot "bin/integer_mul.dat" using 2:6 notitle with linespoints

set output "doc/gfx/mul_time.png"
set ylabel "Time"
set xlabel "Number of Limbs"
set title "Number of Limbs vs. Time(sec)"
plot "bin/integer_mul.dat" using 2:7 notitle with linespoints
